home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / nt / source.exe / POSIX / BSDPSX / GETWD.C < prev    next >
C/C++ Source or Header  |  1992-09-17  |  335b  |  27 lines

  1. /*
  2.  * Getwd:  Not Posix.  Written in terms of Posix call, getcwd.  AOJ
  3.  */
  4.  
  5. #include <unistd.h>
  6.  
  7. char *getwd (buf)
  8. register char     
  9.     *buf;
  10. {
  11.     return getcwd (buf, 80);
  12. }
  13. /*
  14. main (argc, argv)
  15. char    **argv;
  16. {
  17.     char
  18.         *c,
  19.         buf [64];
  20.  
  21.     c = getwd (buf);
  22.     if (!c)
  23.         puts ("failed");
  24.     printf ("getwd %s\n", buf);
  25. }
  26. */
  27.